package com.itheima.method;

public class Method04 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        boolean result = compare(a, b);
        long c = 100;
        long d = 100;
        boolean result1 = compare(c, d);
        byte n = 5;
        byte m = 5;
        boolean result2 = compare(n, m);
        System.out.println(result + " " + result1 + " " + result2);

    }

    public static boolean compare(int a, int b) {
        return a == b;
    }

    public static boolean compare(long a, long b) {
        return a == b;
    }

    public static boolean compare(byte a, byte b) {
        return a == b;
    }

    public static boolean compare(short a, short b) {
        return a == b;
    }
}
